<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<script src="../../dist/layui/layui.js"></script>
		<script src="../../dist/layui/jquery-3.5.0.js"></script>
        <link rel="stylesheet" type="text/css" href="../../dist/layui/css/layui.css"/>
        <style>
            .layui-layout-admin .layui-header{
                background-color: #f60 !important;
            }
        </style>
	</head>
	<body>
		<div class="aa">
			111111
		</div>
		<script>
			function GetRequest() {  
				var url = location.search;
				//获取url中"?"符后的字串  
				var theRequest = new Object(); 

				if (url.indexOf("?") != -1) { 

					var str = url.substr(1); 
					
					strs = str.split("&");  
					
					for(var i = 0; i < strs.length; i ++) {  
						theRequest[strs[i].split("=")[0]]=unescape(strs[i].split("=")[1]);
					}  
				}  
				return theRequest;  

			}  
			let obj = GetRequest()
			console.log(obj.name,7)
			$('.aa').html(obj.name)
		</script>
	</body>
</html>

